package com.example.spring_trans.service;

import com.example.spring_trans.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * ClassName: UserInfoService
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2024/3/19 22:21
 * @Version 1.0
 */
@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Transactional
    public Integer insertUser(String userName, String password) {
        return userInfoMapper.insert(userName, password);
    }
}
